package day2;
import java.util.*;
/**
 * @author oldliu
 * @since 1.0
 */
public class List3 {
    public static void main(String[] args) {
        List l=new ArrayList();
        l.add(new People("老吴","男",23));
        l.add(new People("laozhang","男",21));
        l.add(new People("老赵","男",25));
        l.add(new People("老宋","男",26));
        System.out.println(l.size());
        People p=new People("老赵","妖",300);
        boolean in=l.contains(p);
        System.out.println("在？"+in);
        int pos=l.indexOf(p);
        System.out.println(p+"在集合的位置是："+pos);
    }
}
